#pragma once
#include <windows.h>
#include "CSingleton.h"
#include "CDXManager.h"
namespace Framework
{
	class CVSView:public CAbsSingleton<CVSView>
	{
		friend class CAbsSingleton<CVSView>; 
	public:
		CVSView(HINSTANCE _hInstance,int width,int height,bool isFullScreen,char* name);
		virtual ~CVSView(void);
		static LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam);
		int GetWidth(){return m_iWidth;}
		int GetHeight(){return m_iHeight;}
		bool IsFullScreen(){return m_isFullScreen;}
		void Update();
		HWND GethWnd(){return m_hWnd;}
		HINSTANCE GethInst(){return hInstance;}
	private:
		HINSTANCE hInstance;
		HWND m_hWnd;
		HDC m_hWndDC;
		int m_iWidth;
		int m_iHeight;
		char* m_strTitle;
		bool m_isFullScreen;
		void InitWindow();
		void Destroy();
	};



}